package dy.spec.edu.week12_class01;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

public class FirstActivity extends AppCompatActivity {
    private List<Word> wordList=new ArrayList<>();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
        initWord();
        WordAdapter adapter=new WordAdapter(FirstActivity.this,R.layout.word_item,wordList);
        ListView lb=(ListView)findViewById(R.id.lv);
        lb.setAdapter(adapter);
    }
    private void initWord(){
        Word a=new Word("订阅号消息","小新说车：什么是小众的豪华，这俩车能回答",R.drawable.wx33_03);
        wordList.add(a);
        Word a1=new Word("指云端","这个秋冬他们相继离世，癌症究竟是怎样摧..",R.drawable.wx33_06);
        wordList.add(a1);
        Word a2=new Word("微信收款助手","微信支付收款4.00元",R.drawable.wx33_09);
        wordList.add(a2);
        Word a3=new Word("金大师为人名服务","机构师说：[语音]",R.drawable.wx33_11);
        wordList.add(a3);
        Word a4=new Word("春晖花园客户服务中心","[10条]春晖花园客户服务中心：@",R.drawable.wx33_14);
        wordList.add(a4);
        Word a5=new Word("H161师晨冰涨价逻辑交流群","Aa严时高级助理-小胡：",R.drawable.wx33_16);
        wordList.add(a5);
        Word a6=new Word("微信团队","登录操作通知",R.drawable.wx33_18);
        wordList.add(a6);
        Word a7=new Word("幼专教工足球协会","小新说车：什么是小众的豪华，这俩车能回答",R.drawable.wx33_20);
        wordList.add(a7);


    }
}

